package com.woniu.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniu.mapper.OrdersUumsMapper;
import com.woniu.pojo.OrdersUums;
import com.woniu.service.OrdersUumsService;
import org.springframework.stereotype.Service;

/**
* @author dell is user
* @description 针对表【orders_uums】的数据库操作Service实现
* @createDate 2023-10-29 14:48:33
*/
@Service
public class OrdersUumsServiceImpl extends ServiceImpl<OrdersUumsMapper, OrdersUums>
    implements OrdersUumsService{

    @Override
    public OrdersUums queryByTel(String phoneNumber) {
        LambdaQueryWrapper<OrdersUums> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(OrdersUums::getTel,phoneNumber);
        return getOne(queryWrapper);
    }

    @Override
    public OrdersUums queryByAccount(String account) {
        LambdaQueryWrapper<OrdersUums> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(OrdersUums::getAccount,account);
        return getOne(queryWrapper);
    }
}




